//
//  PBAppDelegate.h
//  Bus
//
//  Created by wangjiajia on 13-7-6.
//  Copyright (c) 2013年 wangjiajia. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PBLoginViewController;
@class NewsView;
@class OneDayView;
@class NoticeView;
@class ProfitView;
@class WorkReportView;
@class Gtasks;
#import "ASIHTTPRequestDelegate.h"
//全局变量(如果用property也行，相当于提供了getter/setter)
int userId;
NSString* userName;

@interface PBAppDelegate : UIResponder <UIApplicationDelegate,UITabBarControllerDelegate,ASIHTTPRequestDelegate>

@property (strong, nonatomic) UIWindow *window;
//1、登陆界面
@property (strong, nonatomic) PBLoginViewController *pbLoginViewController;
//2、待办界面
@property (strong,nonatomic) Gtasks* gtasks;
//跳转页面，需要用导航控件
//@property (strong,nonatomic) UINavigationController *navController;
//主界面的控制器
@property (strong,nonatomic) NewsView * newsView;
@property (strong,nonatomic) OneDayView * oneDayView;
@property (strong,nonatomic) NoticeView * noticeView;
@property (strong,nonatomic) ProfitView * profitView;
@property (strong,nonatomic) WorkReportView * workReportView;

//3、UITabBarController,包括以上5个控制器
@property (strong, nonatomic) UITabBarController *tabBarController;

//进入主界面
-(void)goMainView:(int)ret;
@end
